import { uploadType, regularRule } from '@/utils/util'
import { cloneDeep } from 'lodash-es'

export const BaseFormConfig = {
	prop: 'base0',
	inline: false,
	showBtn: false,
	labelPosition: 'top',
	column: [
		{
			label: 'LOGO',
			prop: 'organizationLogo',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			custome: 'img',
			viewDisplay: false,
			rules: [{ required: true, message: '请上传照片' }],
			span: 12,
			labelTip: '公开信息',
		},
		{
			label: '门头照片',
			prop: 'doorHeadImgs',
			uploadTip: '(需要包含养老机构名称标识信息)',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			custome: 'img',
			viewDisplay: false,
			rules: [{ required: true, message: '请上传门头照片' }],
			span: 12,
			labelTip: '公开信息',
		},
		{
			label: '机构名称',
			prop: 'organizationName',
			changeField: true,
			maxlength: '50',
			showWordLimit: true,
			type: 'text',
			viewDisplay: false,
			labelTip: '公开信息',
			rules: [{ required: true, message: '请输入机构名称' }],
			span: 8,
		},
		{
			label: '机构性质',
			prop: 'institutionalNature',
			propName: 'institutionalNatureLabel',
			type: 'remoteSelect',
			code: 'INSTITUTIONAL_NATURE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			rules: [{ required: true, message: '请选择机构性质' }],
			span: 8,
		},
		{
			label: '统一社会信用代码/营业执照(民非)证号',
			prop: 'creditCode',
			maxlength: '18',
			changeField: true,
			showWordLimit: true,
			type: 'text',
			labelPosition: 'top',
			viewDisplay: false,
			editDisabled: true,
			rules: [
				{ pattern: regularRule.code, message: '请输入正确的统一社会信用代码/营业执照(民非)证号' },
				{ required: true, message: '请输入统一社会信用代码/营业执照(民非)证号' },
			],
			span: 8,
		},
		{
			label: '所属地区(注册地)',
			prop: 'areas',
			propName: 'areas_name',
			type: 'AplidAreaSelect',
			labelPosition: 'top',
			changeField: true,
			viewDisplay: false,
			rules: [{ required: true, message: '请选择所属地区' }],
			span: 8,
		},

		{
			label: '所在地区(运营地)',
			prop: 'nowAreas',
			propName: 'nowAreasNames',
			type: 'AplidAreaSelect',
			labelPosition: 'top',
			viewDisplay: false,
			changeField: true,
			rules: [{ required: true, message: '请选择所在地区' }],
			span: 8,
			change: (item, form) => {
				if (item.dataItem) form.postalCode = item.dataItem.postalCode
			},
		},
		{
			label: '机构地址',
			prop: 'organizationAddress',
			changeField: true,
			maxlength: '140',
			showWordLimit: true,
			viewDisplay: false,
			type: 'textarea',
			labelPosition: 'top',
			autosize: {
				minRows: 1,
			},
			labelTip: '公开信息',
			rules: [{ required: true, message: '请输入机构详细地址' }],
			span: 8,
		},
		{
			label: '邮箱',
			prop: 'mailbox',
			type: 'input',
			span: 8,
			rules: [{ required: true, message: '请输入邮箱' }],
		},
		{
			label: '邮政编码',
			prop: 'postalCode',
			type: 'input',
			rules: [{ required: true, message: '请输入邮政编码' }],
			span: 8,
		},
		{
			label: '施工状态',
			prop: 'constructionStatus',
			propName: 'constructionStatusLabel',
			type: 'remoteSelect',
			code: 'CONSTRUCTION_STATUS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: true,
			rules: [{ required: true, message: '请选择施工状态' }],
			span: 8,
		},
		{
			label: '运营状态',
			prop: 'operateStatus',
			propName: 'operateStatusLabel',
			changeField: true,
			type: 'remoteSelect',
			code: 'ORG_OPERATE_STATUS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择运营状态' }],
			span: 8,
			viewDisplay: false,
		},
		{
			label: '机构类型',
			prop: 'organizationType',
			propName: 'organizationTypeLabel',
			changeField: true,
			type: 'remoteSelect',
			code: 'ORG_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: true,
			span: 8,
			viewDisplay: false,
			rules: [{ required: true, message: '请选择机构类型' }],
		},
		{
			label: '机构创建日期',
			prop: 'foundDate',
			changeField: true,
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			rules: [{ required: true, message: '请选择机构创建日期' }],
			span: 8,
			labelTip: '公开信息',
		},
		// {
		// 	label: '机构建成年份',
		// 	prop: 'foundDate',
		// 	changeField: true,
		// 	type: 'date',
		// 	format: 'YYYY年MM月DD日',
		// 	valueFormat: 'YYYY-MM-DD',
		// 	rules: [{ required: true, message: '请选择机构创建日期' }],
		// 	span: 8,
		// 	labelTip: '公开信息',
		// },
		{
			label: '是否独立占地',
			prop: 'isIndependentLandOccupation',
			propName: 'isIndependentLandOccupationLabel',
			type: 'remoteSelect',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
			rules: [{ required: true, message: '请选择是否独立占地' }],
		},
		{
			label: '是否收治失能、半失能老人',
			prop: 'isAdmissionDisability',
			propName: 'isAdmissionDisabilityLabel',
			type: 'remoteSelect',
			api: 'getDictItemList',
			code: 'COMMON_FLAG',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
			rules: [{ required: true, message: '请选择是否收治失能、半失能老人' }],
		},
		{
			label: '评价分',
			prop: 'organizationEvaluateScore',
			type: 'input',
			isNum: true,
			span: 8,
			formDisplay: true,
			viewDisplay: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的评价分' }],
		},
		{
			label: '机构等级评定',
			prop: 'organizationLevel',
			propName: 'organizationLevelLabel',
			changeField: true,
			type: 'remoteSelect',
			code: 'ORG_LEVEL',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			viewDisplay: false,
			labelTip: '公开信息',
			rules: [{ required: true, message: '请选择机构等级评定' }],
			span: 8,
		},
		{
			label: '评定日期',
			prop: 'organizationEvaluateDate',
			type: 'date',
			changeField: true,
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			viewDisplay: false,
			rules: [{ required: true, message: '请选择评定日期' }],
			span: 8,
		},
		{
			label: '统一社会信用代码证是否无限期',
			prop: 'isCreditCode',
			propName: 'isCreditCodeLabel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			control: (e, model) => {
				return {
					creditCodeStartTime: {
						display: e != 1,
					},
					creditCodeEndTime: {
						display: e != 1,
					},
				}
			},
			span: 8,
			rules: [{ required: true, message: '请选择统一社会信用代码证是否无限期' }],
		},
		{
			label: '统一社会信用代码证有效期起始时间',
			prop: 'creditCodeStartTime',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 8,
			rules: [{ required: true, message: '请选择统一社会信用代码证有效期起始时间' }],
		},
		{
			label: '统一社会信用代码证有效期截止时间',
			prop: 'creditCodeEndTime',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 8,
		},
		// {
		// 	label: '区核定床位数',
		// 	prop: 'approvedBedTotal',
		// 	span: 8,
		// },

		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '法人信息',
			span: 24,
		},

		{
			label: '法定代表人',
			prop: 'legalUserName',
			maxlength: '20',
			showWordLimit: true,
			type: 'text',
			changeField: true,
			rules: [{ required: true, message: '请输入法人姓名' }],
			span: 8,
		},
		{
			label: '证件类型',
			prop: 'legalIdentifyType',
			propName: 'legalIdentifyTypeLabel',
			type: 'remoteSelect',
			code: 'ID_CARD_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			dataType: 'string',
			rules: [{ required: true, message: '请选择法人证件类型' }],
			span: 8,
		},
		{
			label: '证件号码',
			prop: 'legalIdentifyCode',
			type: 'input',
			changeField: true,
			rules: [
				{ pattern: regularRule.idCard, message: '请输入正确的法人证件号码' },
				{ required: true, message: '请输入法人证件号码' },
			],
			span: 8,
		},
		{
			label: '联系电话',
			prop: 'legalUserPhone',
			maxlength: '11',
			showWordLimit: true,
			type: 'text',
			changeField: true,
			rules: [
				{ pattern: regularRule.phone, message: '请输入正确的法人联系电话' },
				{ required: true, message: '请输入法人联系电话' },
			],
			span: 8,
		},
		{
			label: '法人类型',
			prop: 'legalType',
			propName: 'legalTypeLabel',
			type: 'remoteSelect',
			code: 'DEPUTY_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: false,
			// rules: [{ required: true, message: '请选择法人类型' }],
			span: 8,
		},
		{
			label: '法人性质',
			prop: 'legalProperty',
			propName: 'legalPropertyLabel',
			type: 'remoteSelect',
			code: 'LEGAL_PROPERTY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			rules: [{ required: true, message: '请选择法人性质' }],
			span: 8,
		},

		{
			label: '开户银行名称',
			prop: 'bankName',
			type: 'input',
			rules: [{ required: true, message: '请输入开户银行名称' }],
			span: 8,
		},
		{
			label: '银行账号',
			prop: 'bankAccount',
			type: 'input',
			rules: [{ required: true, message: '请输入银行账号' }],
			span: 8,
		},
		{
			label: '卡号户名',
			prop: 'bankCardOwner',
			type: 'input',
			rules: [{ required: true, message: '请输入卡号户名' }],
			span: 8,
		},
		{
			label: '法人运营状态',
			prop: 'legalOperationStatus',
			propName: 'legalOperationStatusLabel',
			type: 'remoteSelect',
			code: 'ORG_OPERATE_STATUS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择法人运营状态' }],
			span: 8,
		},

		{
			label: '法人登记机关',
			prop: 'registerGovernment',
			maxlength: '140',
			showWordLimit: true,
			autosize: {
				minRows: 1,
			},
			type: 'textarea',
			changeField: true,
			rules: [{ required: true, message: '请输入登记机关' }],
			span: 8,
		},

		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '机构负责人信息(一般为院长)',
			span: 24,
		},

		{
			label: '机构负责人',
			prop: 'burdenUserName',
			changeField: true,
			maxlength: '20',
			showWordLimit: true,
			type: 'text',
			rules: [{ required: true, message: '请输入机构负责人姓名' }],
			span: 8,
			labelTip: '公开信息',
		},
		{
			label: '机构负责人身份证号',
			prop: 'burdenIdCard',
			changeField: true,
			type: 'input',
			rules: [
				{ pattern: regularRule.idCard, message: '请输入正确的机构负责人身份证号' },
				{ required: true, message: '请输入机构负责人身份证号' },
			],
			span: 8,
		},
		{
			label: '证件类型',
			prop: 'burdenIdentifyType',
			propName: 'burdenIdentifyTypeLabel',
			type: 'remoteSelect',
			code: 'ID_CARD_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			dataType: 'string',
			rules: [{ required: true, message: '请选择证件类型' }],
			span: 8,
		},
		{
			label: '联系方式',
			prop: 'burdenUserPhone',
			changeField: true,
			maxlength: '11',
			showWordLimit: true,
			rules: [
				{ pattern: regularRule.phone, message: '请输入正确的机构负责人联系方式' },
				{ required: true, message: '请输入机构负责人联系方式' },
			],
			type: 'tel',
			labelTip: '公开信息',
			span: 8,
		},
		// {
		// 	label: '联系人学历',
		// 	prop: 'burdenEducation',
		// 	propName: 'burdenEducationLabel',
		// 	type: 'remoteSelect',
		// 	code: 'EDUCATION',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	changeField: true,
		// 	dataType: 'string',
		// 	span: 8,
		// },
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '机构联系人信息(一般为对外公开联系人)',
			span: 24,
		},

		{
			label: '机构联系人',
			prop: 'contactName',
			changeField: true,
			maxlength: '20',
			showWordLimit: true,
			type: 'text',
			rules: [{ required: true, message: '请输入机构联系人姓名' }],
			span: 8,
			labelTip: '公开信息',
		},
		{
			label: '机构联系人身份证号',
			prop: 'contactIdCard',
			changeField: true,
			type: 'input',
			rules: [
				{ pattern: regularRule.idCard, message: '请输入正确的机构联系人身份证号' },
				{ required: true, message: '请输入机构联系人身份证号' },
			],
			span: 8,
		},
		{
			label: '证件类型',
			prop: 'contactIdentifyType',
			propName: 'contactIdentifyTypeLabel',
			type: 'remoteSelect',
			code: 'ID_CARD_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			dataType: 'string',
			rules: [{ required: true, message: '请选择证件类型' }],
			span: 8,
		},
		{
			label: '联系方式',
			prop: 'contactPhone',
			changeField: true,
			maxlength: '11',
			showWordLimit: true,
			rules: [
				{ pattern: regularRule.phone, message: '请输入正确的机构联系人联系方式' },
				{ required: true, message: '请输入机构联系人联系方式' },
			],
			type: 'tel',
			labelTip: '公开信息',
			span: 8,
		},

		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '备案信息',
			span: 24,
		},

		{
			label: '是否备案',
			prop: 'filingFlag',
			propName: 'filingFlagLabel',
			changeField: true,
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择是否备案' }],
			control: (e, model) => {
				return {
					filingCode: {
						display: e == 1,
					},
					filingDate: {
						display: e == 1,
					},
					filingEndDate: {
						display: e == 1,
					},
					filingUnit: {
						display: e == 1,
					},
					filingMaterials: {
						display: e == 1,
					},
				}
			},
			span: 8,
		},
		{
			label: '机构备案号',
			prop: 'filingCode',
			changeField: false,
			maxlength: '140',
			showWordLimit: true,
			type: 'text',
			rules: [{ required: true, message: '请输入机构备案号' }],
			span: 8,
		},
		{
			label: '备案日期',
			prop: 'filingDate',
			changeField: true,
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			rules: [{ required: true, message: '请选择备案日期' }],
			span: 8,
		},
		{
			label: '备案到期日期',
			prop: 'filingEndDate',
			changeField: true,
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
		{
			label: '备案单位',
			prop: 'filingUnit',
			changeField: true,
			maxlength: '140',
			showWordLimit: true,
			type: 'text',
			span: 8,
		},
		{
			label: '建筑面积',
			prop: 'organizationFloorSpace',
			type: 'input',
			append: '平方米',
			isNum: true,
			rules: [
				{ required: true, message: '请输入建筑面积' },
				{ pattern: /^[0-9]*$/, message: '请输入正确的面积数' },
			],
			span: 8,
			labelTip: '公开信息',
		},
		{
			label: '占地面积',
			prop: 'organizationCoverArea',
			type: 'input',
			append: '平方米',
			isNum: true,
			labelTip: '公开信息',
			rules: [
				{ required: true, message: '请输入占地面积' },
				{ pattern: /^[0-9]*$/, message: '请输入正确的面积数' },
			],
			span: 8,
		},
		{
			label: '备案材料',
			prop: 'filingMaterials',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			disabled: true,
			limit: 9,
			multiple: true,
			span: 24,
		},
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '医养结合',
			span: 24,
		},
		{
			label: '是否开展医疗服务',
			prop: 'medicalFlag',
			propName: 'medicalFlagLabel',
			changeField: true,
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择是否开展医疗服务' }],
			control: (e, model) => {
				return {
					medicalInstitution: {
						display: e == 1,
					},
					medicalCooperateType: {
						display: e == 1,
					},
				}
			},
			span: 8,
		},
		// {
		// 	label: '开展医疗服务方式',
		// 	prop: 'medicalMode',
		// 	propName: 'medicalModeLabel',
		// 	changeField: true,
		// 	custome: 'dict',
		// 	type: 'remoteSelect',
		// 	code: 'MEDICAL_MODE',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	span: 8,
		// },
		{
			label: '内设医疗机构类型',
			prop: 'medicalInstitution',
			propName: 'medicalInstitutionLabel',
			changeField: true,
			type: 'remoteSelect',
			code: 'MEDICAL_INSTITUTE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '与医疗机构签约合作类型',
			prop: 'medicalCooperateType',
			propName: 'medicalCooperateTypeLabel',
			changeField: true,
			type: 'remoteSelect',
			code: 'MEDICAL_COOPERATE_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '是否取得医疗机构执业许可证书',
			prop: 'medicalPermitFlag',
			propName: 'medicalPermitFlagLabel',
			changeField: true,
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			labelPosition: 'top',
			// rules: [{ required: true, message: '请选择是否取得医疗机构执业许可证书' }],
			control: (e, model) => {
				return {
					medicalPermitObtainingData: {
						display: e == 1,
					},
					medicalPermitImg: {
						display: e == 1,
					},
				}
			},
			span: 8,
		},

		{
			label: '医疗机构执业许可证书取得日期',
			prop: 'medicalPermitObtainingData',
			changeField: true,
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			labelPosition: 'top',
			span: 8,
		},
		// {
		// 	label: '医疗机构许可证编号',
		// 	prop: 'medicalPermitCode',
		// 	changeField: true,
		// 	maxlength: '50',
		// 	showWordLimit: true,
		// 	labelPosition: 'top',
		// 	type: 'text',
		// 	span: 8,
		// },
		{
			label: '医疗机构执业许可证书照片',
			prop: 'medicalPermitImg',
			changeField: true,
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			span: 24,
		},
		// {
		// 	label: '医疗机构执业许可证书过期日期',
		// 	prop: 'medicalPermitTermDate',
		// 	changeField: true,
		// 	type: 'date',
		// 	format: 'YYYY年MM月DD日',
		// 	valueFormat: 'YYYY-MM-DD',
		// 	labelPosition: 'top',
		// 	span: 8,
		// },

		{
			label: '是否取得医疗保险定点医疗机构资格证书',
			prop: 'medicalInsureFlag',
			propName: 'medicalInsureFlagLabel',
			changeField: true,
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			labelPosition: 'top',
			// rules: [{ required: true, message: '请选择是否取得医疗保险定点医疗机构资格证书' }],
			control: (e, model) => {
				return {
					medicalInsurePermitObtainingDate: {
						display: e == 1,
					},
					medicalInsurePermitImg: {
						display: e == 1,
					},
					medicalInsureNetworkMode: {
						display: e == 1,
					},
				}
			},
			span: 8,
		},

		// {
		// 	label: '医疗保险定点医疗机构资格证书过期日期',
		// 	prop: 'medicalInsurePermitTermDate',
		// 	changeField: true,
		// 	labelPosition: 'top',
		// 	type: 'date',
		// 	format: 'YYYY年MM月DD日',
		// 	valueFormat: 'YYYY-MM-DD',
		// 	span: 8,
		// },
		{
			label: '医疗保险定点医疗机构资格证书取得日期',
			prop: 'medicalInsurePermitObtainingDate',
			changeField: true,
			labelPosition: 'top',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
		{
			label: '纳入医保联网方式',
			prop: 'medicalInsureNetworkMode',
			propName: 'medicalInsureNetworkModeLabel',
			type: 'remoteSelect',
			changeField: true,
			code: 'MEDICAL_INSURE_NETWORK_MODE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			labelPosition: 'top',
			span: 8,
		},
		{
			uploadTip: '医疗保险定点医疗机构资格证书',
			label: '医疗保险定点医疗机构资格证书',
			prop: 'medicalInsurePermitImg',
			type: 'upload',
			changeField: true,
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			span: 24,
		},
		{
			label: '医疗机构地址是否同养老机构地址',
			prop: 'medicalPermitAddressIsSame',
			propName: 'medicalPermitAddressIsSameLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			span: 8,
			control: (e) => {
				return {
					medicalPermitAddress: {
						display: e == 0,
					},
				}
			},
		},
		{
			label: '医疗机构地址',
			prop: 'medicalPermitAddress',
			span: 8,
		},
		{
			label: '医疗机构法人是否同本机构法人',
			prop: 'medicalPermitLegalOrgIsSame',
			propName: 'medicalPermitLegalOrgIsSameLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			span: 8,
			control: (e) => {
				return {
					medicalPermitLegalName: {
						display: e == 0,
					},
					medicalPermitLegalPhone: {
						display: e == 0,
					},
				}
			},
		},
		{
			label: '医疗机构法人姓名',
			prop: 'medicalPermitLegalName',
			span: 8,
		},
		{
			label: '医疗机构法人联系电话',
			prop: 'medicalPermitLegalPhone',
			span: 8,
		},

		// {
		// 	label: '医疗机构等级',
		// 	prop: 'medicalInstituteLevel',
		// 	propName: 'medicalInstituteLevelLabel',
		// 	type: 'remoteSelect',
		// 	code: 'MEDICAL_INSURE_LEVEL',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	changeField: true,
		// 	multiple: false,
		// 	span: 8,
		// },
		// {
		// 	label: '医疗机构性质',
		// 	prop: 'medicalInstituteProperty',
		// 	propName: 'medicalInstitutePropertyLabel',
		// 	type: 'remoteSelect',
		// 	code: 'LEGAL_PROPERTY',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	changeField: true,
		// 	span: 8,
		// },
		// {
		// 	label: '医养结合批复时间',
		// 	prop: 'medicalCombineApprovalDate',
		// 	type: 'date',
		// 	format: 'YYYY年MM月DD日',
		// 	valueFormat: 'YYYY-MM-DD',
		// 	changeField: true,
		// 	span: 8,
		// },
		//--------------------长护险 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '长护险',
			span: 24,
		},
		{
			label: '是否长护险机构',
			prop: 'longInsureInstituteFlag',
			propName: 'longInsureInstituteFlagLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择是否长护险机构' }],
			control: (e, model) => {
				return {
					longInsureApprovalDate: {
						display: e == 1,
					},
					longCareInsuranceNumber: {
						display: e == 1,
					},
					longInsureServiceScope: {
						display: e == 1,
					},
					longInsureServiceContent: {
						display: e == 1,
					},
					longInsureServiceCategory: {
						display: e == 1,
					},
				}
			},
			changeField: true,
			span: 6,
		},
		{
			label: '长护险批复时间',
			prop: 'longInsureApprovalDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 6,
		},
		// {
		// 	label: '床位数(个)',
		// 	prop: 'longInsureBedNum',
		// 	type: 'input',
		// 	isNum: true,
		// 	changeField: true,
		// 	span: 6,
		// },
		// {
		// 	label: '人数',
		// 	prop: 'longCareInsuranceNumber',
		// 	type: 'input',
		// 	isNum: true,
		// 	changeField: true,
		// 	span: 6,
		// },
		{
			label: '服务范围',
			prop: 'longInsureServiceScope',
			type: 'textarea',
			maxlength: '500',
			changeField: true,
			showWordLimit: true,
			autosize: {
				minRows: 1,
			},
			labelTip: '公开信息',
			span: 24,
		},
		{
			label: '服务内容',
			prop: 'longInsureServiceContent',
			type: 'textarea',
			maxlength: '500',
			showWordLimit: true,
			changeField: true,
			autosize: {
				minRows: 1,
			},
			span: 24,
		},
		{
			label: '服务类型',
			prop: 'longInsureServiceCategory',
			type: 'textarea',
			maxlength: '500',
			showWordLimit: true,
			changeField: true,
			autosize: {
				minRows: 1,
			},
			span: 24,
		},
		//--------------------消防验收信息 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '消防验收信息',
			span: 24,
		},
		{
			label: '消防部门审验合格材料',
			prop: 'fireApprovalMaterial',
			type: 'upload',
			listType: 'picture-card',
			fileType: uploadType.fileMetaType,
			labelPosition: 'top',
			showFileList: true,
			disabled: true,
			limit: 9,
			multiple: true,
			rules: [{ required: true, message: '请上传消防部门审验合格材料' }],
			span: 24,
		},
		{
			label: '消防部门审验合格日期',
			prop: 'fireApprovalDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			rules: [{ required: true, message: '请选择消防部门审验合格日期' }],
			span: 8,
		},

		{
			label: '消防审核验收批准单位名称',
			prop: 'fireApprovalInstitute',
			type: 'text',
			maxlength: '50',
			showWordLimit: true,
			rules: [{ required: true, message: '请输入消防审核验收批准单位名称' }],
			span: 8,
		},
		//--------------------设施（建设/租赁）情况 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '设施（建设/租赁）情况',
			span: 24,
		},
		{
			label: '机构土地性质',
			prop: 'landProperty',
			propName: 'landPropertyLabel',
			type: 'remoteSelect',
			code: 'LAND_PROPERTY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择机构土地性质' }],
			span: 8,
		},
		{
			label: '是否位于共有建筑',
			prop: 'locatedSharedBuilding',
			propName: 'locatedSharedBuildingLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择机构土地性质' }],
			span: 8,
		},
		// {
		// 	label: '总绿化面积',
		// 	prop: 'landAreaGreen',
		// 	type: 'input',
		// 	append: '平方米',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的面积数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '休息室面积',
		// 	prop: 'landAreaRest',
		// 	type: 'input',
		// 	append: '平方米',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的面积数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '餐厅面积',
		// 	prop: 'landAreaDining',
		// 	type: 'input',
		// 	append: '平方米',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的面积数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '体锻（康复）室面积',
		// 	prop: 'landAreaTherapy',
		// 	type: 'input',
		// 	append: '平方米',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的面积数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '活动（阅览）室面积',
		// 	prop: 'landAreaActivity',
		// 	type: 'input',
		// 	append: '平方米',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的面积数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '主要岀入口个数',
		// 	prop: 'mainGateNum',
		// 	type: 'input',
		// 	append: '个',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数' }],
		// 	span: 8,
		// },
		// {
		// 	label: '建筑层数',
		// 	prop: 'buildFloorNum',
		// 	type: 'input',
		// 	append: '层',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的层数' }],
		// 	span: 8,
		// },

		{
			label: '产权信息',
			prop: 'houseProperty',
			propName: 'housePropertyLabel',
			type: 'remoteSelect',
			code: 'HOUSE_PROPERTY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择产权信息' }],
			span: 8,
		},
		{
			label: '是否自持房产',
			prop: 'isSelfOwnedProperty',
			propName: 'isSelfOwnedPropertyLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择是否自持房产' }],
			span: 8,
		},
		// {
		// 	label: '房屋权属证明状态',
		// 	prop: 'houseProveStatus',
		// 	propName: 'houseProveStatusLabel',
		// 	type: 'remoteSelect',
		// 	code: 'HOUSE_PROVE_STATUS',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	rules: [{ required: true, message: '请选择房屋权属证明状态' }],
		// 	span: 8,
		// },
		{
			label: '租赁/产权年限',
			prop: 'houseLeaseDeadline',
			type: 'input',
			append: '年',
			rules: [
				{ required: true, message: '请输入租赁/产权年限' },
				{ pattern: /^[0-9]*$/, message: '请输入正确的年份' },
			],
			span: 8,
		},
		// {
		// 	label: '年租金',
		// 	prop: 'houseLeaseAmount',
		// 	type: 'input',
		// 	append: '万元',
		// 	rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的租金数' }],
		// 	span: 8,
		// },
		{
			label: '自持房产或者租赁开始时间',
			prop: 'realEstateStartDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			rules: [{ required: true, message: '请选择自持房产或者租赁开始时间' }],
			span: 8,
		},

		{
			label: '自持房产或者租赁结束时间',
			prop: 'realEstateEndDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			rules: [{ required: true, message: '请选择自持房产或者租赁结束时间' }],
			span: 8,
		},

		{
			label: '租赁合同/自有产权证明',
			prop: 'ownershipCertificate',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'picture-card',
			labelPosition: 'top',
			showFileList: true,
			disabled: true,
			limit: 9,
			multiple: true,
			rules: [{ required: true, message: '请上传租赁合同/自有产权证明' }],
			span: 24,
		},
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '介绍',
			span: 24,
		},
		{
			label: '服务范围',
			prop: 'organizationServiceScope',
			maxlength: '500',
			showWordLimit: true,
			type: 'textarea',
			labelPosition: 'top',
			autosize: {
				minRows: 2,
			},
			placeholder: '（65岁及以上的老年人；需要生活照料、家人或家庭无法提供足够的照顾和支持的老人  ）',
			rules: [{ required: true, message: '请输入服务范围' }],
			span: 24,
			labelTip: '公开信息',
		},

		{
			label: '图片介绍',
			prop: 'pictureIntroduction',
			uploadTip: '(3-5张,可以体现机构外观、主出入口、老人房间、公共活动区域及设施)',
			type: 'upload',
			labelPosition: 'top',
			showFileList: true,
			disabled: true,
			listType: 'picture-card',
			limit: 5,
			multiple: true,
			rules: [{ required: true, message: '请上传图片介绍' }],
			span: 24,
			labelTip: '公开信息',
		},
		{
			label: '介绍',
			prop: 'organizationIntroduce',
			maxlength: '1000',
			showWordLimit: true,
			type: 'textarea',
			labelPosition: 'top',
			autosize: {
				minRows: 2,
			},
			placeholder:
				'（地理位置：位于南京市中心，周边环境安静，交通便利。 设施设备：现代化建筑和设施，每个老人都有独立的卧室，配备舒适的床铺、衣柜和书桌。公共区域包括餐厅、活动室、图书馆和健身房等。 医疗护理：专业的医护团队，提供全天候的医疗护理服务，还有康复治疗师提供物理治疗和康复训练。 社交活动：定期组织各种活动，如音乐会、舞蹈表演、手工艺制作等。 安全保障：设有24小时安保人员，监控系统覆盖公共区域和走廊，紧急呼叫系统随时响应，确保老人的安全。 价格：提供不同的服务套餐，根据老人的需求和预算灵活选择。 ）',
			rules: [{ required: true, message: '请输入介绍' }],
			span: 24,
			labelTip: '公开信息',
		},
		{
			label: '备注',
			prop: 'organizationNote',
			maxlength: '1000',
			showWordLimit: true,
			type: 'textarea',
			labelPosition: 'top',
			autosize: {
				minRows: 2,
			},
			span: 24,
			labelTip: '公开信息',
			// rules: [{ required: true, message: '请输入备注' }],
		},
		{
			label: '装修照片（室内、室外）',
			prop: 'decorationPhoto',
			type: 'upload',
			listType: 'picture-card',
			labelPosition: 'top',
			showFileList: true,
			disabled: true,
			limit: 9,
			multiple: true,
			span: 24,
		},
	],
}

export const ExtendFormConfig = {
	prop: 'base1',
	inline: false,
	showBtn: false,
	labelPosition: 'top',
	column: [
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '岗位信息',
			span: 24,
		},
		{
			label: '社工师人员数量',
			prop: 'socialWorkerNumber',
			type: 'input',
			changeField: false,
			labelPosition: 'top',
			append: '人',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 6,
		},
		{
			label: '心理健康指导师人员数量',
			prop: 'mentalHealthMentorNumber',
			type: 'input',
			changeField: false,
			labelPosition: 'top',
			append: '人',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 6,
		},
		{
			label: '健康管理师人员数量',
			prop: 'healthManagerNumber',
			type: 'input',
			changeField: false,
			append: '人',
			labelPosition: 'top',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 6,
		},
		{
			label: '按摩师人员数量',
			prop: 'masseurNumber',
			type: 'input',
			changeField: false,
			append: '人',
			labelPosition: 'top',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 6,
		},
		{
			label: '其他岗位人员数量',
			prop: 'otherPositionsNumber',
			type: 'input',
			changeField: false,
			labelPosition: 'top',
			append: '人',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 6,
		},
		{
			label: '营养师人员数量',
			prop: 'dietitian',
			type: 'input',
			changeField: false,
			labelPosition: 'top',
			append: '人',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 6,
		},

		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '床位数量',
			span: 24,
		},
		{
			label: '床位总数量',
			prop: 'bedTotalNum',
			changeField: true,
			type: 'input',
			isNum: true,
			append: '张',
			labelTip: '公开信息',
			rules: [
				{ required: true, message: '请输入床位总数量' },
				{ pattern: /^[0-9]*$/, message: '请输入正确的数量' },
			],
			labelPosition: 'top',
			span: 6,
		},
		// {
		// 	label: '核定符合省定标准的家庭养老床位数',
		// 	prop: 'standardBedNum',
		// 	changeField: true,
		// 	type: 'input',
		// 	isNum: true,
		// 	append: '张',
		// 	rules: [
		// 		{ required: true, message: '请输入核定符合省定标准的家庭养老床位数' },
		// 		{ pattern: /^[0-9]*$/, message: '请输入正确的数量' },
		// 	],
		// 	labelPosition: 'top',
		// 	span: 6,
		// },
		{
			label: '备案床位数量',
			prop: 'bedFilingNum',
			type: 'input',
			isNum: true,
			append: '张',
			changeField: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			labelPosition: 'top',
			span: 6,
		},
		{
			label: '空闲床位数量',
			prop: 'bedUnusedNum',
			append: '张',
			isNum: true,
			labelTip: '公开信息',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			type: 'input',
			changeField: true,
			labelPosition: 'top',
			span: 6,
		},
		{
			label: '护理型床位数量',
			prop: 'bedNurseNum',
			append: '张',
			isNum: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			type: 'input',
			changeField: true,
			span: 6,
		},
		{
			label: '空闲护理床位数量',
			prop: 'bedNurseUnusedNum',
			append: '张',
			isNum: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			type: 'input',
			changeField: true,
			labelPosition: 'top',
			span: 6,
		},
		{
			label: '公益性兜底床位数',
			prop: 'publicWelfareBottomUpBedNum',
			type: 'input',
			append: '张',
			isNum: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},
		{
			label: '全托床位数',
			prop: 'bedBoardNum',
			type: 'input',
			append: '张',
			isNum: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},
		{
			label: '日间照料床位数',
			prop: 'daytimeCareBedNum',
			type: 'input',
			append: '张',
			isNum: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '收费标准',
			span: 24,
		},
		{
			label: '收费范围',
			prop: 'chargingRange',
			maxlength: '140',
			showWordLimit: true,
			type: 'RangeValue',
			separator: '-',
			labelTip: '公开信息',
			rules: [{ required: true, message: '请输入收费范围' }],
			span: 8,
		},
		{
			label: '押金收费标准',
			prop: 'feeStandardDeposit',
			maxlength: '140',
			showWordLimit: true,
			type: 'text',
			span: 8,
		},
		{
			label: '普通床位收费标准',
			prop: 'feeStandardRegularBeds',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			labelTip: '公开信息',
			rules: [{ required: true, message: '请输入普通床位收费标准' }],
			span: 8,
		},
		{
			label: '护理型床位收费标准',
			prop: 'feeStandardNurse',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
			labelTip: '公开信息',
			rules: [{ required: true, message: '请输入护理型床位收费标准' }],
		},
		{
			label: '能力完好护理费收费标准',
			prop: 'feeStandardAbilityIntact',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
		},
		{
			label: '轻度失能护理费收费标准',
			prop: 'feeStandardDisabledMild',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
		},
		{
			label: '中度失能护理费收费标准',
			prop: 'feeStandardDisabledModerate',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
		},
		{
			label: '重度失能护理费收费标准',
			prop: 'feeStandardDisabledGrave',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
		},
		{
			label: '完全失能护理费收费标准',
			prop: 'feeStandardDisabledWhole',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
		},
		{
			label: '是否采用会员制方式收费',
			prop: 'feeVipFlag',
			propName: 'feeVipFlagLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},

		{
			label: '医疗备用金收费标准',
			prop: 'feeStandardImpurest',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
		},
		{
			label: '伙食费收费标准',
			prop: 'feeStandardFood',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
		},
		{
			label: '其他收费项目及收费标准',
			prop: 'feeStandardOther',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
		},
		{
			label: '是否收住特困服务对象',
			prop: 'holdOnDestituteOldman',
			propName: 'holdOnDestituteOldmanLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: false,
			span: 8,
		},
		{
			label: '收住特困服务对象数量',
			prop: 'holdOnDestituteOldmanNumber',
			type: 'input',
			changeField: false,
			append: '人',
			labelTip: '公开信息',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},

		{
			label: '代办服务费收费标准',
			prop: 'agencyServiceFeeStandard',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
		},
		{
			label: '特需服务费收费标准',
			prop: 'specialServiceFeeStandard',
			maxlength: '140',
			showWordLimit: true,
			type: 'number',
			min: 0,
			controls: false,
			span: 8,
		},
		//--------------------服务项目 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '服务项目',
			span: 24,
		},
		{
			label: '',
			type: 'dynamic',
			prop: 'ServiceOrgItems',
			span: 24,
			column: [
				{
					label: '服务项目名称',
					prop: 'itemName',
					maxlength: '50',
					showWordLimit: true,
					type: 'text',
				},
				{
					label: '服务项目类型',
					prop: 'itemType',
					propName: 'itemTypeLabel',
					type: 'remoteSelect',
					code: 'SERVICE_ITEM_TYPE',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
				},
				{
					label: '价格（元）',
					prop: 'itemPrice',
					isNum: true,
					type: 'input',
				},
				{
					label: '护理等级',
					prop: 'nurseLevel',
					propName: 'nurseLevelLabel',
					type: 'remoteSelect',
					code: 'NURSE_LEVEL',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
				},
			],
		},
		{
			type: 'DividerHtml',
			custome: 'divider',
			labelPosition: 'top',
			position: 'center',
			modelValue: '服务和服务资质信息',
			span: 24,
		},
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '居家服务',
			span: 24,
		},
		{
			label: '是否提供居家上门服务',
			prop: 'doorstepFlag',
			propName: 'doorstepFlagLabel',
			changeField: true,
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			control: (e, model) => {
				return {
					doorstepServiceItems: {
						display: e == 1,
					},
				}
			},
			rules: [{ required: true, message: '请选择是否提供居家上门服务' }],
			span: 24,
		},
		{
			label: '居家上门服务项目',
			prop: 'doorstepServiceItems',
			propName: 'doorstepServiceItemsLabels',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			code: 'DOORSTEP_SERVICE_ITEMS',
			span: 24,
			labelPosition: 'top',
			multiple: true,
		},
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '社区服务',
			span: 24,
		},
		{
			label: '是否提供社区养老服务',
			prop: 'communityFlag',
			propName: 'communityFlagLabel',
			changeField: true,
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择是否提供社区养老服务' }],
			control: (e, model) => {
				return {
					communityServiceItems: {
						display: e == 1,
					},
				}
			},
			span: 12,
		},
		{
			label: '社区养老服务项目',
			prop: 'communityServiceItems',
			propName: 'communityServiceItemsLabels',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			code: 'COMMUNITY_SERVIC',
			span: 12,
			labelPosition: 'top',
			multiple: true,
		},
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '食品生产',
			span: 24,
		},
		{
			label: '是否取得食品生产许可证',
			prop: 'foodPermitFlag',
			propName: 'foodPermitFlagLabel',
			changeField: true,
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			labelPosition: 'top',
			rules: [{ required: true, message: '请选择是否取得食品生产许可证' }],
			control: (e, model) => {
				return {
					foodPermitImg: {
						display: e == 1,
					},
					foodProductionEnergy: {
						display: e == 1,
					},
					foodPermitTermDate: {
						display: e == 1,
					},
				}
			},
			span: 8,
		},
		{
			label: '食品生产许可证过期日期',
			prop: 'foodPermitTermDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 8,
			labelPosition: 'top',
		},
		{
			label: '食品生产能源',
			prop: 'foodProductionEnergy',
			propName: 'foodProductionEnergyLabel',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			code: 'ENERGY',
			span: 8,
			labelPosition: 'top',
			multiple: true,
		},
		{
			label: '食品生产许可证照片',
			prop: 'foodPermitImg',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			changeField: true,
			span: 24,
		},

		//--------------------其他资质 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '其他资质',
			span: 24,
		},

		{
			label: '是否享受养老服务税费减免',
			prop: 'taxReliefFlag',
			propName: 'taxReliefFlagLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择是否享受养老服务税费减免' }],
			span: 8,
		},
		{
			label: '是否投保责任险代码',
			prop: 'liabilityInsureFlag',
			propName: 'liabilityInsureFlagLabel',
			code: 'COMMON_FLAG',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			rules: [{ required: true, message: '请选择是否投保责任险代码' }],
			span: 8,
		},
		{
			label: '享受政府扶持优惠政策内容',
			prop: 'governmentPrivilegeContent',
			type: 'textarea',
			maxlength: '500',
			showWordLimit: true,
			autosize: {
				minRows: 1,
			},
			span: 24,
		},
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '消防安全',
			span: 24,
		},
		{
			label: '消防安全负责人',
			type: 'input',
			prop: 'personResponsibleForFireSafety',
			span: 8,
		},
		{
			label: '消防安全责任人电话',
			type: 'input',
			prop: 'personResponsibleForFireSafetyPhone',
			span: 8,
		},
		{
			label: '证件类型',
			prop: 'personResponsibleForFireSafetyIdentifyType',
			propName: 'personResponsibleForFireSafetyIdentifyTypeLabel',
			type: 'remoteSelect',
			code: 'ID_CARD_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			span: 8,
		},
		{
			label: '消防安全责任人身份证',
			type: 'input',
			prop: 'personResponsibleForFireSafetyIdCard',
			span: 8,
		},
		{
			label: '专兼职消防管理人',
			type: 'input',
			prop: 'partTimeFireManager',
			span: 8,
		},
		{
			label: '专兼职消防管理人电话',
			type: 'input',
			prop: 'partTimeFireManagerPhone',
			span: 8,
		},
		{
			label: '证件类型',
			prop: 'partTimeFireManagerIdentifyType',
			propName: 'partTimeFireManagerIdentifyTypeLabel',
			type: 'remoteSelect',
			code: 'ID_CARD_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			span: 8,
		},
		{
			label: '专兼职消防管理人证件号码',
			type: 'input',
			prop: 'partTimeFireManagerIdCard',
			span: 8,
		},
		{
			label: '消防管理人',
			type: 'input',
			prop: 'fireManager',
			span: 8,
		},
		{
			label: '消防管理人电话',
			type: 'input',
			prop: 'fireManagerPhone',
			span: 8,
		},
		{
			label: '证件类型',
			prop: 'fireManagerIdentifyType',
			propName: 'fireManagerIdentifyTypeLabel',
			type: 'remoteSelect',
			code: 'ID_CARD_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			span: 8,
		},
		{
			label: '消防管理人证件号码',
			type: 'input',
			prop: 'fireManagerIdCard',
			span: 8,
		},
		{
			label: '消防自救措施',
			type: 'input',
			prop: 'fireSelfRescueMeasures',
			span: 8,
		},
		{
			label: '外围消防设施',
			type: 'input',
			prop: 'externalFireService',
			span: 8,
		},
		{
			label: '安全出口处',
			type: 'input',
			prop: 'safetyExitNumber',
			span: 8,
		},
		{
			label: '消防车道数',
			type: 'input',
			prop: 'numberOfFireLanes',
			span: 8,
		},
		{
			label: '消防车道位置',
			type: 'input',
			prop: 'locationOfFireLane',
			span: 8,
		},
		{
			label: '疏散电梯数',
			type: 'input',
			prop: 'numberOfEvacuationElevators',
			span: 8,
		},
		{
			label: '消防电梯数',
			type: 'input',
			prop: 'numberOfFireElevators',
			span: 8,
		},
		{
			label: '有无避难层',
			prop: 'isRefugeLayer',
			propName: 'isRefugeLayerLabel',
			type: 'select',
			filterKey: 'value',
			dicData: [
				{ label: '无', value: 0, type: 'danger' },
				{ label: '有', value: 1, type: 'primary' },
			],
			span: 8,
			control: (e) => {
				return {
					numberOfRefugeLevels: {
						display: e == 1,
					},
					areaOfRefugeFloors: {
						display: e == 1,
					},
					locationOfRefugeFloors: {
						display: e == 1,
					},
				}
			},
		},
		{
			label: '避难层数',
			type: 'input',
			prop: 'numberOfRefugeLevels',
			span: 8,
		},
		{
			label: '避难层面积',
			type: 'input',
			prop: 'areaOfRefugeFloors',
			span: 8,
		},
		{
			label: '避难层位置',
			type: 'input',
			prop: 'locationOfRefugeFloors',
			span: 8,
		},
		{
			label: '建筑结构',
			prop: 'buildingStructure',
			propName: 'buildingStructureLabel',
			type: 'remoteSelect',
			code: 'BUILDING_STRUCTURE',
			api: 'getDictItemList',
			filterKey: 'value',
			span: 8,
		},
		{
			label: '消防控制室位置',
			type: 'input',
			prop: 'locationOfFireControlRoom',
			span: 8,
		},
		{
			label: '耐火等级',
			prop: 'fireResistanceLevel',
			propName: 'fireResistanceLevelLabel',
			type: 'remoteSelect',
			code: 'FIRE_RESISTANCE_LEVEL',
			api: 'getDictItemList',
			filterKey: 'value',
			span: 8,
		},
		{
			label: '火灾危险性',
			prop: 'fireHazardLevel',
			propName: 'fireHazardLevelLabel',
			type: 'remoteSelect',
			code: 'FIRE_HAZARD_LEVEL',
			api: 'getDictItemList',
			filterKey: 'value',
			span: 8,
		},
		{
			label: '消防设施',
			prop: 'fireFacilities',
			propName: 'fireFacilitiesLabel',
			type: 'remoteSelect',
			code: 'FIRE_FACILITIES',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: true,
			span: 8,
			control: (e) => {
				return {
					otherFireFacilities: {
						display: e && e.includes('19'),
					},
				}
			},
		},
		{
			label: '其他消防设施',
			type: 'input',
			prop: 'otherFireFacilities',
			span: 8,
		},
	],
}

export const OtherFormConfig = {
	prop: 'base2',
	inline: false,
	showBtn: false,
	labelPosition: 'top',
	column: [
		{
			label: '指静脉是否启用',
			prop: 'isUsing',
			propName: 'isUsingLabel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		//--------------------收住信息 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '收住信息',
			span: 24,
		},
		{
			label: '收住老人类型',
			prop: 'refugeOldmanType',
			propName: 'refugeOldmanTypeLabel',
			type: 'remoteSelect',
			code: 'OLDMAN_TYPE',
			api: 'getDictItemList',
			changeField: true,
			filterKey: 'value',
			multiple: false,
			span: 8,
			control: (e) => {
				return {
					otherRefugeOldmanNote: {
						display: e == 8,
					},
				}
			},
		},
		{
			label: '其他收住老人类型说明',
			prop: 'otherRefugeOldmanNote',
			changeField: true,
			maxlength: '500',
			showWordLimit: true,
			type: 'text',
			span: 8,
		},

		// {
		// 	label: '收住三无老人数量',
		// 	prop: 'refugeThreeOldmanNum',
		// 	type: 'input',
		// 	changeField: true,
		// 	append: '人',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	span: 8,
		// },
		// {
		// 	label: '收住五保老人数量',
		// 	prop: 'refugeFiveOldmanNum',
		// 	type: 'input',
		// 	append: '人',
		// 	changeField: true,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	span: 8,
		// },
		{
			label: '收住老人总数量',
			prop: 'refugeTotalOldmanNum',
			type: 'input',
			append: '人',
			changeField: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},
		{
			label: '收住特困老人数量',
			prop: 'refugeDestituteOldmanNum',
			type: 'input',
			append: '人',
			changeField: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},
		//--------------------工勤人数 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '工勤人数(人)',
			span: 24,
		},
		{
			label: '管理岗人员数量',
			prop: 'orgManagerNum',
			append: '人',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			type: 'input',
			changeField: true,
			span: 8,
		},
		{
			label: '技术岗人员数量',
			prop: 'technologyNumber',
			type: 'input',
			changeField: false,
			labelPosition: 'top',
			append: '人',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 6,
		},
		{
			label: '医生数量',
			prop: 'orgDoctorNum',
			append: '人',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			type: 'input',
			span: 8,
			changeField: true,
		},
		{
			label: '护士数量',
			prop: 'orgNurseNum',
			append: '人',
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			type: 'input',
			span: 8,
			changeField: true,
		},
		// {
		// 	label: '康复师数量',
		// 	prop: 'orgTherapistNum',
		// 	type: 'input',
		// 	append: '人',
		// 	changeField: true,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	span: 8,
		// },
		// {
		// 	label: '心理咨询师数量',
		// 	prop: 'orgPsychologyNum',
		// 	type: 'input',
		// 	append: '人',
		// 	changeField: true,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	span: 8,
		// },
		// {
		// 	label: '护师人数数量',
		// 	prop: 'orgSeniorNurseNum',
		// 	type: 'input',
		// 	append: '人',
		// 	changeField: true,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	span: 8,
		// },
		// {
		// 	label: '其他医技人员数量',
		// 	prop: 'orgOtherMedicalNum',
		// 	type: 'input',
		// 	append: '人',
		// 	changeField: true,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	span: 8,
		// },
		// {
		// 	label: '护理员数量',
		// 	prop: 'orgNursingNum',
		// 	type: 'input',
		// 	append: '人',
		// 	changeField: true,
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// 	span: 8,
		// },
		{
			label: '工勤岗人员数量',
			prop: 'orgHandymanNum',
			type: 'input',
			append: '人',
			changeField: true,
			rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
			span: 8,
		},
		//--------------------投资信息 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '投资信息(万元)',
			span: 24,
		},
		{
			label: '项目总投资额',
			prop: 'investAmountTotal',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},

		{
			label: '市政府投资额',
			prop: 'investAmountCity',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '区县政府投资额',
			prop: 'investAmountArea',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '街道乡镇投资额',
			prop: 'investAmountStreet',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '建设单位投资额',
			prop: 'investAmountBuild',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '其他投资额',
			prop: 'investAmountOther',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '社会资助额',
			prop: 'investAmountSociety',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		//--------------------建设成本信息 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '建设成本信息(万元)',
			span: 24,
		},
		{
			label: '土地购置费',
			prop: 'fundLandBuy',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '土建费',
			prop: 'fundLandBuild',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '房屋购置费',
			prop: 'fundHouseBuy',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '房屋租赁费',
			prop: 'fundHouseLease',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '装修费',
			prop: 'fundHouseTrim',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '设备购置费',
			prop: 'fundDeviceBuy',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '注册资金',
			prop: 'registerAmount',
			type: 'input',
			span: 8,
		},
		{
			label: '开办经费',
			prop: 'fundStart',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},
		{
			label: '其他经费',
			prop: 'fundOther',
			type: 'input',
			append: '万元',
			rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的金额' }],
			span: 8,
		},

		//--------------------老年用品 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '老年用品',
			span: 24,
		},
		{
			label: '',
			type: 'dynamicForm',
			prop: 'ServiceOrgProduct',
			span: 24,
			tabType: 'form',
			config: {
				inline: false,
				showBtn: false,
				labelPosition: 'top',
				maxHeight: '30rem',
				addBtn: true,
				delBtn: true,
			},
			column: [
				{
					label: '产品类型',
					prop: 'productType',
					propName: 'productTypeLabel',
					type: 'remoteSelect',
					code: 'OLDMAN_PRODUCT_TYPE',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
				},
				{
					label: '产品名称',
					prop: 'productName',
					type: 'text',
					maxlength: '50',
					showWordLimit: true,
				},
				{
					label: '产品价格',
					prop: 'productPrice',
					type: 'input',
					append: '元',
					rules: [{ pattern: regularRule.fixedTwoNum, message: '请输入正确的价格' }],
				},
				{
					label: '产品型号',
					prop: 'productModel',
					type: 'text',
					maxlength: '50',
					showWordLimit: true,
				},
				{
					label: '产品用途',
					prop: 'productUsePurpose',
					type: 'textarea',
					maxlength: '500',
					showWordLimit: true,
				},
				{
					label: '生产厂商名称',
					prop: 'productManufacturer',
					type: 'textarea',
					maxlength: '50',
					showWordLimit: true,
				},
			],
		},
		//--------------------设施设备 ----------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '设施设备',
			span: 24,
		},
		{
			label: '',
			type: 'dynamic',
			prop: 'ServiceOrgDevice',
			span: 24,
			column: [
				{
					label: '设施设备类型',
					prop: 'deviceType',
					propName: 'deviceTypeLabel',
					type: 'remoteSelect',
					code: 'DEVICE_TYPE',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
					labelTip: '公开信息',
				},
				{
					label: '设施设备数量',
					prop: 'deviceNum',
					type: 'input',
					append: '个',
					rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
				},
			],
		},
		//--------------------疫情防控数据-物资类 ----------------
		// {
		// 	type: 'DividerHtml',
		// 	labelPosition: 'top',
		// 	position: 'center',
		// 	modelValue: '疫情防控数据-物资类',
		// 	span: 24,
		// },
		// {
		// 	label: '每日出入口工作人员数',
		// 	prop: 'preventDoorPersonDayNum',
		// 	type: 'input',
		// 	isNum: true,
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '每日实际消毒面积',
		// 	prop: 'preventDisinfectDayArea',
		// 	type: 'input',
		// 	isNum: true,
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '㎡',
		// },
		// {
		// 	label: '院内区域数',
		// 	prop: 'preventInsideAreaNum',
		// 	type: 'input',
		// 	isNum: true,
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '在运营',
		// 	prop: 'preventStatus',
		// 	propName: 'preventStatusLabel',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	code: 'COMMON_FLAG',
		// 	type: 'remoteSelect',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// },
		// {
		// 	label: '存放地点',
		// 	prop: 'preventDeposit',
		// 	propName: 'preventDepositLabel',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	code: 'PREVENT_DEPOSIT',
		// 	type: 'remoteSelect',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// },
		// {
		// 	label: '医用外科口罩',
		// 	prop: 'preventMask',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '个',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: 'N95口罩',
		// 	prop: 'preventNioshMask',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '个',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '医用一次性防护服',
		// 	prop: 'preventProtectCloth',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '套',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '一次性使用隔离服',
		// 	prop: 'preventIsolationCloth',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '套',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '医用无纺布帽',
		// 	prop: 'preventNonwovensHat',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '顶',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '医用隔离面罩',
		// 	prop: 'preventVisor',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '支',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '医用护目镜',
		// 	prop: 'preventGoggles',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '个',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '长筒胶靴',
		// 	prop: 'preventGumboots',
		// 	type: 'input',
		// 	append: '双',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '过膝靴套',
		// 	prop: 'preventKneeBoots',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '双',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '医用隔离鞋套',
		// 	prop: 'preventShoeCover',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '副',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '含氯消毒',
		// 	prop: 'preventDisinfectTablets',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '片',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '免洗手消毒凝胶或消毒液',
		// 	prop: 'preventDisinfectant',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '瓶',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '75%医用酒精',
		// 	prop: 'preventAlcohol',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '瓶',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '医用乳胶手套',
		// 	prop: 'preventGlove',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '副',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '正压头套或全面防护型呼吸防护器',
		// 	prop: 'preventVentilator',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	tip: '三级防护必备',
		// 	append: '顶',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '红外体温枪',
		// 	prop: 'preventThermometer',
		// 	type: 'input',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	append: '把',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		//--------------------疫情防控数据-隔离类 ----------------
		// {
		// 	type: 'DividerHtml',
		// 	labelPosition: 'top',
		// 	position: 'center',
		// 	modelValue: '疫情防控数据-隔离类',
		// 	span: 24,
		// },
		// {
		// 	label: '是否设置独立隔离场所',
		// 	prop: 'quarantineAlonePlace',
		// 	propName: 'quarantineAlonePlaceLabel',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	code: 'COMMON_FLAG',
		// 	type: 'remoteSelect',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// },
		// {
		// 	label: '最大限度可进驻工作人员数',
		// 	prop: 'quarantineStationedPersonNum',
		// 	type: 'input',
		// 	append: '把',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '现配有工作人员数',
		// 	prop: 'quarantineNowPersonNum',
		// 	type: 'input',
		// 	append: '把',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '最大限度可隔离老人数',
		// 	prop: 'quarantineOldmanMaxNum',
		// 	type: 'input',
		// 	append: '把',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '配有床位数',
		// 	prop: 'quarantineBedNum',
		// 	type: 'input',
		// 	append: '把',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '已隔离老人数量',
		// 	prop: 'quarantineOldmanNum',
		// 	type: 'input',
		// 	append: '把',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '被隔离工作人员数量',
		// 	prop: 'quarantinePersonNum',
		// 	type: 'input',
		// 	append: '把',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '是否配备隔离转运车辆',
		// 	prop: 'quarantineReservePlan',
		// 	propName: 'quarantineReservePlanLabel',
		// 	span: 8,
		// 	labelPosition: 'top',
		// 	code: 'COMMON_FLAG',
		// 	type: 'remoteSelect',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	// control: (e, model) => {
		// 	// 	return {
		// 	// 		quarantineCarNum: {
		// 	// 			display: e == 1,
		// 	// 		},
		// 	// 	}
		// 	// },
		// },
		// {
		// 	label: '配有隔离转运车辆数',
		// 	prop: 'quarantineCarNum',
		// 	type: 'input',
		// 	span: 8,
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '外出就医人员人数',
		// 	prop: 'quarantineOutsidePersonNum',
		// 	type: 'input',
		// 	span: 8,
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		//--------------------疫情防控数据-防控类 ----------------
		// {
		// 	type: 'DividerHtml',
		// 	labelPosition: 'top',
		// 	position: 'center',
		// 	modelValue: '疫情防控数据-防控类',
		// 	span: 24,
		// },
		// {
		// 	label: '完成第几轮核酸检测',
		// 	prop: 'controlNucleicTestTimes',
		// 	type: 'input',
		// 	span: 8,
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '完成第几轮核酸检测的在院工作人员数',
		// 	prop: 'controlNucleicPersonNum',
		// 	type: 'input',
		// 	span: 8,
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '完成核酸检测的入住老人数',
		// 	prop: 'controlNucleicOldmanNum',
		// 	type: 'input',
		// 	span: 8,
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '多少在院工作人员有接触史',
		// 	prop: 'controlContactPersonNum',
		// 	type: 'input',
		// 	span: 8,
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
		// {
		// 	label: '多少在院老人有接触史',
		// 	prop: 'controlContactOldmanNum',
		// 	type: 'input',
		// 	span: 8,
		// 	isNum: true,
		// 	labelPosition: 'top',
		// 	rules: [{ pattern: /^[0-9]*$/, message: '请输入正确的数量' }],
		// },
	],
}
let copyBaseDetailColumn: any = cloneDeep(BaseFormConfig.column)
copyBaseDetailColumn.forEach((el, index) => {
	if (el.prop == 'creditCodeEndTime') {
		let list = [
			{
				label: '区核定床位数',
				prop: 'approvedBedTotal',
				span: 8,
			},
			{
				label: '核定符合省定标准的家庭养老床位数',
				prop: 'standardBedNum',
				disabled: true,
				span: 8,
			},
		]

		copyBaseDetailColumn.splice(index + 1, 0, ...list)
	}
})
export const DetailConfig = {
	label: '基础信息',
	prop: 'base0',
	inline: false,
	showBtn: false,
	labelPosition: 'top',
	column: [
		{
			prop: 'organizationLogo',
			span: 4,
			custome: 'carousel',
			labelPosition: 'top',
			width: '376px',
			props: ['organizationLogo', 'doorHeadImgs'],
			style: {
				minWidth: '376px',
				height: '300px',
				borderRadius: '20px 0',
				padding: '10px',
			},
			children: [
				{
					type: 'DividerHtml',
					modelValue: '基本信息',
					position: 'center',
					labelPosition: 'top',
					span: 24,
				},
				{
					label: '机构等级评定',
					prop: 'organizationLevel',
					propName: 'organizationLevelLabel',
					custome: 'RateXing',
					span: 12,
				},
				{
					label: '评定日期',
					prop: 'organizationEvaluateDate',
					span: 12,
				},
				{
					label: '机构地址',
					prop: 'organizationAddress',
					changeField: true,
					maxlength: '140',
					showWordLimit: true,
					type: 'textarea',
					labelPosition: 'top',
					autosize: {
						minRows: 1,
					},

					span: 12,
				},
				{
					label: '统一社会信用代码',
					prop: 'creditCode',
					maxlength: '18',
					changeField: true,
					showWordLimit: true,
					type: 'text',
					labelPosition: 'top',
					span: 12,
				},
				{
					label: '所属地区(注册地)',
					prop: 'areas',
					propName: 'areas_name',
					type: 'AplidAreaSelect',
					labelPosition: 'top',
					changeField: true,
					span: 12,
				},
				{
					label: '所在地区(运营地)',
					prop: 'nowAreas',
					propName: 'nowAreasNames',
					type: 'AplidAreaSelect',
					labelPosition: 'top',
					changeField: true,
					span: 12,
				},
				// {
				// 	label: '医疗机构性质',
				// 	prop: 'medicalInstituteProperty',
				// 	propName: 'medicalInstitutePropertyLabel',
				// 	type: 'remoteSelect',
				// 	code: 'LEGAL_PROPERTY',
				// 	api: 'getDictItemList',
				// 	filterKey: 'value',
				// 	multiple: false,
				// 	span: 12,
				// },
				{
					label: '运营状态',
					prop: 'operateStatus',
					propName: 'operateStatusLabel',
					changeField: true,
					type: 'remoteSelect',
					code: 'ORG_OPERATE_STATUS',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
					span: 12,
				},
				{
					label: '机构类型',
					prop: 'organizationType',
					propName: 'organizationTypeLabel',
					changeField: true,
					type: 'remoteSelect',
					code: 'ORG_TYPE',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
					span: 12,
				},
				{
					label: '入住率',
					prop: 'occupancyRate',
					span: 12,
				},
				{
					label: '医护老人比例',
					prop: 'healthcareElderlyRate',
					span: 12,
				},
			],
		},
		...copyBaseDetailColumn,
	],
}
